<template>
    <section class="w-full relative flex ">
        <el-card style="width: 260px" class="h-full" shadow="hover">
            <div class="m-6">
                <el-button class="w-full" type="primary">主要按钮</el-button>
            </div>
            <div class="w-full">
                <div class="flex flex-col px-6 pb-2">
                    <div class="flex justify-between items-center cursor-pointer">
                        <div class="flex items-center mb-2">
                                <span class="feather-icon select-none relative">
                                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
                                         fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
                                         stroke-linejoin="round" class="feather feather-mail h-6 w-6">
                                        <path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
                                        <polyline points="22,6 12,13 2,6"></polyline>
                                    </svg>
                                </span>
                            <span class="text-lg ml-3">Inbox</span>
                        </div>
                        <el-badge :value="12" class="item"></el-badge>
                    </div>
                </div>
                <div class="flex flex-col px-6 pb-2">
                    <div class="flex justify-between items-center cursor-pointer">
                        <div class="flex items-center mb-2">
                                <span class="feather-icon select-none relative">
                                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
                                         fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
                                         stroke-linejoin="round" class="feather feather-mail h-6 w-6">
                                        <path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
                                        <polyline points="22,6 12,13 2,6"></polyline>
                                    </svg>
                                </span>
                            <span class="text-lg ml-3">Inbox</span>
                        </div>
                        <el-badge :value="12" class="item"></el-badge>
                    </div>
                </div>
                <div class="flex flex-col px-6 pb-2">
                    <div class="flex justify-between items-center cursor-pointer">
                        <div class="flex items-center mb-2">
                                <span class="feather-icon select-none relative">
                                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
                                         fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
                                         stroke-linejoin="round" class="feather feather-mail h-6 w-6">
                                        <path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
                                        <polyline points="22,6 12,13 2,6"></polyline>
                                    </svg>
                                </span>
                            <span class="text-lg ml-3">Inbox</span>
                        </div>
                        <el-badge :value="12" class="item"></el-badge>
                    </div>
                </div>
                <div class="flex flex-col px-6 pb-2">
                    <div class="flex justify-between items-center cursor-pointer">
                        <div class="flex items-center mb-2">
                                <span class="feather-icon select-none relative">
                                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
                                         fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
                                         stroke-linejoin="round" class="feather feather-mail h-6 w-6">
                                        <path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
                                        <polyline points="22,6 12,13 2,6"></polyline>
                                    </svg>
                                </span>
                            <span class="text-lg ml-3">Inbox</span>
                        </div>
                        <el-badge :value="12" class="item"></el-badge>
                    </div>
                </div>
            </div>
            <el-divider></el-divider>
            <div class="px-6 py-4">
                <h5 class="mb-8">Labels</h5>
                <div>
                    <div class="flex items-center mb-4 cursor-pointer" v-for="(tag, index) in emailTags" :key="index" @click="updateFilter(tag.value)">
                        <div class="ml-1 h-4 w-4 rounded-full mr-4" :class="'bg-' + tag.color"></div>
                        <span class="text-lg">{{ tag.text }}</span>
                    </div>
                </div>
            </div>
        </el-card>
        <div>
            <div class="px-4 py-6">
                <div class="flex w-full">
                    <el-avatar src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
                               class="flex-shrink-0 mr-3 border-2 border-solid border-white">
                    </el-avatar>
                    <div class="flex w-full justify-between items-start">
                        <div>
                            <h5 class="mb-1">Ardis Balderson</h5>
                            <span>Focused impactful open system 📷 😃</span>
                            <p>54235345</p>
                        </div>
                        <div class="flex items-center">
                            <div class="flex items-center">
                                <div class="h-3 w-3 rounded-full mr-2"></div>
                            </div>
                            <span>13 Jan</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="px-4 py-6">
                <div class="flex w-full">
                    <el-avatar src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
                               class="flex-shrink-0 mr-3 border-2 border-solid border-white">
                    </el-avatar>
                    <div class="flex w-full justify-between items-start">
                        <div>
                            <h5 class="mb-1">Ardis Balderson</h5>
                            <span>Focused impactful open system 📷 😃</span>
                            <p>54235345</p>
                        </div>
                        <div class="flex items-center">
                            <div class="flex items-center">
                                <div class="h-3 w-3 rounded-full mr-2"></div>
                            </div>
                            <span>13 Jan</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="px-4 py-6">
                <div class="flex w-full">
                    <el-avatar src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
                               class="flex-shrink-0 mr-3 border-2 border-solid border-white">
                    </el-avatar>
                    <div class="flex w-full justify-between items-start">
                        <div>
                            <h5 class="mb-1">Ardis Balderson</h5>
                            <span>Focused impactful open system 📷 😃</span>
                            <p>54235345</p>
                        </div>
                        <div class="flex items-center">
                            <div class="flex items-center">
                                <div class="h-3 w-3 rounded-full mr-2"></div>
                            </div>
                            <span>13 Jan</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</template>

<script>
    export default {
        name: "index",
        data() {
            return {
                emailTags: [
                    { text: 'Personal', value : 'personal', color:"success"},
                    { text: 'Company', value: 'company', color:"primary"},
                    { text: 'Important', value: 'important', color:"warning"},
                    { text: 'Private', value: 'private', color:"danger"},
                ],
            }
        }
    }
</script>

<style scoped>

</style>